/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objetosNegocio;

/**
 *
 * @author QUINTERO
 */
public class Ticket {
    
    private int id;
    private Location location;
    private String movie;
    private Schedule schedule;
    private double cost;

    public Ticket() {
    }

    public Ticket(int id) {
        this.id = id;
    }

    public Ticket(int id, Location location, String movie, Schedule schedule, double cost) {
        this.id = id;
        this.location = location;
        this.movie = movie;
        this.schedule = schedule;
        this.cost = cost;
    }

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public String getMovie() {
        return movie;
    }

    public void setMovie(String movie) {
        this.movie = movie;
    }

    public Schedule getSchedule() {
        return schedule;
    }

    public void setSchedule(Schedule schedule) {
        this.schedule = schedule;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Ticket other = (Ticket) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 29 * hash + this.id;
        return hash;
    }

    @Override
    public String toString() {
        return "Ticket{" + "id=" + id + ", location=" + location + ", movie=" + movie + ", schedule=" + schedule + ", cost=" + cost + '}';
    }
    
    
}
